<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*,com.javabean.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
		<%
		request.setCharacterEncoding("utf-8");
		response.setContentType("text/html;charset=utf-8");
		ArrayList sl = Student.list;
		%>
		<table border="1">
		<tr>
		<td>学号</td>
		<td>姓名</td>
		<td>年龄</td>
		<td>性别</td>
		<td>操作</td>
		</tr>
		<%
		for(int i = 0; i<sl.size(); i++){
			Student st =(Student) sl.get(i);
		%>
		<tr>
		<td><%=st.getNo() %></td>
		<td><%=st.getName() %></td>
		<td><%=st.getAge() %></td>
		<td><%=st.getSex() %></td>
		<td><a href="stu_update.jsp?no=<%=st.getNo()  %>">修改</a>&nbsp;&nbsp;
		    <a href="delete?no=<%=st.getNo() %>">删除</a>&nbsp;&nbsp;</td>
		</tr>
		<%} %>
		</table>
		<a href="stu_register.html">注册</a>
</body>
</html>